<?php 
	include ROOT_ADMIN."/views/_include/head.php";
	include ROOT_ADMIN."/views/_include/header.php";
?>
<div id="wpwrap">
  <div id="wpcontent">
    <div id="wpbody">
      <div id="wpbody-content">
        <div class="wrap">
          <div id="icon-edit" class="icon32 icon32-posts-post"><br />
          </div>
          <h2>Danh sách thành viên</h2>
          <form name="post" action="#" method="post" id="post">
            <div id="poststuff">
              <div id="post-body" class="metabox-holder columns-2">
                <div id="post-body-content">
                  <div id="titlediv">
                   
                    <form id="posts-filter" action="" method="get">
                        
                        <input type="hidden" name="orderby" value="title"><input type="hidden" name="order" value="asc">
                        <input type="hidden" name="post_status" class="post_status_page" value="all">
                        <input type="hidden" name="post_type" class="post_type_page" value="post">
                        
                        <input type="hidden" id="_wpnonce" name="_wpnonce" value="2476acab0c"><input type="hidden" name="_wp_http_referer" value="">
                        <div class="tablenav top">
                            <div class="alignleft actions">
                                <select name="action">
									<option value="-1" selected="selected">Chọn tác vụ</option>
									<option value="edit" class="hide-if-no-js">Sửa</option>
									<option value="trash">Cho vào thùng rác</option>
                                </select>
                                <input type="submit" name="" id="doaction" class="button-secondary action" value="Thực hiện">
                            </div>
                            <form method="post">
                            <div class="alignleft actions">
                                <select name="user_status">
                                    <option value="0" <?php echo !isset($_GET['status'])?"selected='selected'":"" ?>>Tất cả tình trạng</option>
									<option value="1" <?php echo $_GET['status'] == 1?"selected='selected'":"" ?>>Chưa kích hoạt</option>
									<option value="2" <?php echo $_GET['status'] == 2?"selected='selected'":"" ?>>Đã kích hoạt</option>
                                </select>
								<select name="user_level" id="user_level" class="postform">
									<option value="0" <?php echo !isset($_GET['level'])?"selected='selected'":"" ?>>Tất cả Level</option>
									<option class="level-0" value="1" <?php echo $_GET['level'] == 1?"selected='selected'":"" ?>>Quản trị</option>
									<option class="level-1" value="2" <?php echo $_GET['level'] == 2?"selected='selected'":"" ?>>Thành viên</option>

								</select>
								<input type="submit" name="fill" id="post-query-submit" class="button-secondary" value="Lọc" >
							</div>
                            </form>
							<div class="tablenav-pages one-page"><span class="displaying-num">8 sản phẩm</span>
							<!--<span class="pagination-links"><a class="first-page disabled" title="Go to the first page" href="#">«</a>
							<a class="prev-page disabled" title="Go to the previous page" href="#">‹</a>
							<span class="paging-input"><input class="current-page" title="Current page" type="text" name="paged" value="1" size="1"> of <span class="total-pages">1</span></span>
							<a class="next-page disabled" title="Go to the next page" href="#">›</a>
							<a class="last-page disabled" title="Go to the last page" href="#">»</a></span></div>		<input type="hidden" name="mode" value="list">
									<div class="view-switch">
							<a href="#" class="current"><img id="view-switch-list" src="addnew_files/blank.gif" width="20" height="20" title="List View" alt="List View"></a>
							<a href="#"><img id="view-switch-excerpt" src="addnew_files/blank.gif" width="20" height="20" title="Excerpt View" alt="Excerpt View"></a>
									</div>-->
                        
                             <br class="clear">
                        </div>
                        <div class="clear"></div>
                        <!-- LIST -->
                        <?php render_admin("listUser",array("listUser"=>$listUser),"_module/users/") ?>
                        <!-- END LIST -->
                            <div class="tablenav bottom">
                                <div class="alignleft actions">
                                    <select name="action2">
                                        <option value="-1" selected="selected">Chọn tác vụ</option>
                                        <option value="edit" class="hide-if-no-js">Sửa</option>
                                        <option value="trash">Xóa</option>
                                    </select>
                       				<input type="submit" name="" id="doaction2" class="button-secondary action" value="Thực hiện">
                                </div>
                                <div class="alignleft actions"></div>
                       		<div class="tablenav-pages one-page"><span class="displaying-num">8 sản phẩm</span>
                        	<span class="pagination-links"><a class="first-page disabled" title="Go to the first page" href="#">«</a>
                       		<a class="prev-page disabled" title="Go to the previous page" href="#">‹</a>
                            <span class="paging-input">1 of <span class="total-pages">1</span></span>
                            <a class="next-page disabled" title="Go to the next page" href="#">›</a>
                            <a class="last-page disabled" title="Go to the last page" href="#">»</a></span></div>
                                <br class="clear">
                            </div>
                        
                    <!-- EDIT USER -->
                        <?php
                        render_admin("editUser",array(),"_module/users/");
                     ?>
                    <!-- END EDIT USER -->    
                    </div></form>
                  </div>
                </div>
                <!-- /post-body-content -->
                <!-- ADD USER -->
                
                    <?php
                        render_admin("addUser",array("messege"=>$messege,'errors'=>$errors,'check'=>$check,"success"=>$success),"_module/users/");
                     ?>
                <!-- END ADD USER-->
              </div>
              <!-- /post-body --> 
              <br class="clear" />
            </div>
            <!-- /poststuff -->
          </form>
        </div>
        
        <script type="text/javascript">
			try{document.post.title.focus();}catch(e){}
		</script>
        <div class="clear"></div>
      </div>
      <!-- wpbody-content -->
      <div class="clear"></div>
    </div>
    <!-- wpbody -->
    <div class="clear"></div>
  </div>
  <!-- wpcontent -->
  
 
  <script type="text/javascript">
//<![CDATA[
	jQuery( '#ep_explain_more' ).hide();
	jQuery( '#ep_toggle_more' ).click( function() {
		jQuery( '#ep_explain_more' ).toggle();
		return false;
	} );
//]]>
</script><script type='text/javascript'>list_args = {"class":"WP_Post_Comments_List_Table","screen":{"id":"post","base":"post"}};</script>
  <script type='text/javascript'>
/* <![CDATA[ */
var commonL10n = {"warnDelete":"You are about to permanently delete the selected items.\n  'Cancel' to stop, 'OK' to delete."};var wpAjax = {"noPerm":"You do not have permission to do that.","broken":"An unidentified error has occurred."};var autosaveL10n = {"autosaveInterval":"60","savingText":"Saving Draft\u2026","saveAlert":"The changes you made will be lost if you navigate away from this page."};var postL10n = {"ok":"OK","cancel":"Cancel","publishOn":"Publish on:","publishOnFuture":"Schedule for:","publishOnPast":"Published on:","showcomm":"Show more comments","endcomm":"No more comments found.","publish":"Publish","schedule":"Schedule","update":"Update","savePending":"Save as Pending","saveDraft":"Save Draft","private":"Private","public":"Public","publicSticky":"Public, Sticky","password":"Password Protected","privatelyPublished":"Privately Published","published":"Published","comma":","};var thickboxL10n = {"next":"Next >","prev":"< Prev","image":"Image","of":"of","close":"Close","noiframes":"This feature requires inline frames. You have iframes disabled or your browser does not support them.","loadingAnimation":"http:\/\/potsnpans.vn\/wp-includes\/js\/thickbox\/loadingAnimation.gif","closeImage":"http:\/\/potsnpans.vn\/wp-includes\/js\/thickbox\/tb-close.png"};var wordCountL10n = {"type":"w"};var quicktagsL10n = {"wordLookup":"Enter a word to look up:","dictionaryLookup":"Dictionary lookup","lookup":"lookup","closeAllOpenTags":"Close all open tags","closeTags":"close tags","enterURL":"Enter the URL","enterImageURL":"Enter the URL of the image","enterImageDescription":"Enter a description of the image","fullscreen":"fullscreen","toggleFullscreen":"Toggle fullscreen mode","textdirection":"text direction","toggleTextdirection":"Toggle Editor Text Direction"};var wpLinkL10n = {"title":"Insert\/edit link","update":"Update","save":"Add Link","noTitle":"(no title)","noMatchesFound":"No matches found."};/* ]]> */
</script> 
  <script type='text/javascript' src='/assets/js/load-scripts.js'></script> 
  <script type="text/javascript">
		tinyMCEPreInit = {
			base : "http://potsnpans.vn/wp-includes/js/tinymce",
			suffix : "",
			query : "ver=349-21274",
			mceInit : {'content':{mode:"exact",width:"100%",theme:"advanced",skin:"wp_theme",language:"en",spellchecker_languages:"+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv",theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"left",theme_advanced_statusbar_location:"bottom",theme_advanced_resizing:true,theme_advanced_resize_horizontal:false,dialog_type:"modal",formats:{
						alignleft : [
							{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'left'}},
							{selector : 'img,table', classes : 'alignleft'}
						],
						aligncenter : [
							{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'center'}},
							{selector : 'img,table', classes : 'aligncenter'}
						],
						alignright : [
							{selector : 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li', styles : {textAlign : 'right'}},
							{selector : 'img,table', classes : 'alignright'}
						],
						strikethrough : {inline : 'del'}
					},relative_urls:false,remove_script_host:false,convert_urls:false,remove_linebreaks:true,gecko_spellcheck:true,fix_list_elements:true,keep_styles:false,entities:"38,amp,60,lt,62,gt",accessibility_focus:true,tabfocus_elements:"title,publish",media_strict:false,paste_remove_styles:true,paste_remove_spans:true,paste_strip_class_attributes:"all",paste_text_use_dialog:true,spellchecker_rpc_url:"http://potsnpans.vn/wp-includes/js/tinymce/plugins/spellchecker/rpc.php",extended_valid_elements:"article[*],aside[*],audio[*],canvas[*],command[*],datalist[*],details[*],embed[*],figcaption[*],figure[*],footer[*],header[*],hgroup[*],keygen[*],mark[*],meter[*],nav[*],output[*],progress[*],section[*],source[*],summary,time[*],video[*],wbr",wpeditimage_disable_captions:false,wp_fullscreen_content_css:"http://potsnpans.vn/wp-includes/js/tinymce/plugins/wpfullscreen/css/wp-fullscreen.css",plugins:"inlinepopups,spellchecker,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,-wpdm_tinyplugin,-button,-checklist,-arrowlist,-one_half,-one_third,-two_third,-one_fourth,-three_fourth,-person,wpfullscreen",elements:"content",wpautop:true,apply_source_formatting:false,theme_advanced_buttons1:"bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,wp_more,|,spellchecker,wp_fullscreen,wp_adv,separator,wpdm_tinyplugin",theme_advanced_buttons2:"formatselect,underline,justifyfull,forecolor,|,pastetext,pasteword,removeformat,|,charmap,|,outdent,indent,|,undo,redo,wp_help,anchor",theme_advanced_buttons3:"button,checklist,arrowlist,one_half,one_third,two_third,one_fourth,three_fourth,person",theme_advanced_buttons4:"",body_class:"content post-type-post"}},
			qtInit : {'content':{id:"content",buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,spell,close,fullscreen"},'replycontent':{id:"replycontent",buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close"}},
			ref : {plugins:"inlinepopups,spellchecker,tabfocus,paste,media,fullscreen,wordpress,wpeditimage,wpgallery,wplink,wpdialogs,-wpdm_tinyplugin,-button,-checklist,-arrowlist,-one_half,-one_third,-two_third,-one_fourth,-three_fourth,-person,wpfullscreen",theme:"advanced",language:"en"},
			load_ext : function(url,lang){var sl=tinymce.ScriptLoader;sl.markDone(url+'/langs/'+lang+'.js');sl.markDone(url+'/langs/'+lang+'_dlg.js');}
		};
	</script> 
  <script type='text/javascript' src="/assets/js/wp-tinymce.js"></script> 
  <script type="text/javascript">
		(function(){
			var init, ed, qt, first_init, mce = true;

			if ( typeof(tinymce) == 'object' ) {
				// mark wp_theme/ui.css as loaded
				tinymce.DOM.files[tinymce.baseURI.getURI() + '/themes/advanced/skins/wp_theme/ui.css'] = true;

				for ( ed in tinyMCEPreInit.mceInit ) {
					if ( first_init ) {
						init = tinyMCEPreInit.mceInit[ed] = tinymce.extend( {}, first_init, tinyMCEPreInit.mceInit[ed] );
					} else {
						init = first_init = tinyMCEPreInit.mceInit[ed];
					}

					if ( mce )
						try { tinymce.init(init); } catch(e){}
				}
			}

			if ( typeof(QTags) == 'function' ) {
				for ( qt in tinyMCEPreInit.qtInit ) {
					try { quicktags( tinyMCEPreInit.qtInit[qt] ); } catch(e){}
				}
			}
		})();

		var wpActiveEditor;

		jQuery('.wp-editor-wrap').mousedown(function(e){
			wpActiveEditor = this.id.slice(3, -5);
		});

tinymce.PluginManager.load("button", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("checklist", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("arrowlist", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("one_half", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("one_third", "http://potsnpans.vn/wp-content/themes/Broadside//tinymce/customcodes.js");
tinymce.PluginManager.load("two_third", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("one_fourth", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("three_fourth", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");
tinymce.PluginManager.load("person", "http://potsnpans.vn/wp-content/themes/Broadside/tinymce/customcodes.js");

	</script>
  <div id="wp-fullscreen-body">
    <div id="fullscreen-topbar">
      <div id="wp-fullscreen-toolbar">
        <div id="wp-fullscreen-close"><a href="#" onclick="fullscreen.off();return false;">Exit fullscreen</a></div>
        <div id="wp-fullscreen-central-toolbar" style="width:822px;">
          <div id="wp-fullscreen-mode-bar">
            <div id="wp-fullscreen-modes"> <a href="#" onclick="fullscreen.switchmode('tinymce');return false;">Visual</a> <a href="#" onclick="fullscreen.switchmode('html');return false;">HTML</a> </div>
          </div>
          <div id="wp-fullscreen-button-bar">
            <div id="wp-fullscreen-buttons" class="wp_themeSkin">
              <div> <a title="Bold (Ctrl + B)" onclick="fullscreen.b();return false;" class="mceButton mceButtonEnabled mce_bold" href="#" id="wp_fs_bold" role="button" aria-pressed="false"> <span class="mceIcon mce_bold"></span> </a> </div>
              <div> <a title="Italic (Ctrl + I)" onclick="fullscreen.i();return false;" class="mceButton mceButtonEnabled mce_italic" href="#" id="wp_fs_italic" role="button" aria-pressed="false"> <span class="mceIcon mce_italic"></span> </a> </div>
              <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
              <div> <a title="Unordered list (Alt + Shift + U)" onclick="fullscreen.ul();return false;" class="mceButton mceButtonEnabled mce_bullist" href="#" id="wp_fs_bullist" role="button" aria-pressed="false"> <span class="mceIcon mce_bullist"></span> </a> </div>
              <div> <a title="Ordered list (Alt + Shift + O)" onclick="fullscreen.ol();return false;" class="mceButton mceButtonEnabled mce_numlist" href="#" id="wp_fs_numlist" role="button" aria-pressed="false"> <span class="mceIcon mce_numlist"></span> </a> </div>
              <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
              <div> <a title="Blockquote (Alt + Shift + Q)" onclick="fullscreen.blockquote();return false;" class="mceButton mceButtonEnabled mce_blockquote" href="#" id="wp_fs_blockquote" role="button" aria-pressed="false"> <span class="mceIcon mce_blockquote"></span> </a> </div>
              <div class="wp-fullscreen-both"> <a title="Insert/edit image (Alt + Shift + M)" onclick="fullscreen.medialib();return false;" class="mceButton mceButtonEnabled mce_image" href="#" id="wp_fs_image" role="button" aria-pressed="false"> <span class="mceIcon mce_image"></span> </a> </div>
              <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
              <div class="wp-fullscreen-both"> <a title="Insert/edit link (Alt + Shift + A)" onclick="fullscreen.link();return false;" class="mceButton mceButtonEnabled mce_link" href="#" id="wp_fs_link" role="button" aria-pressed="false"> <span class="mceIcon mce_link"></span> </a> </div>
              <div> <a title="Unlink (Alt + Shift + S)" onclick="fullscreen.unlink();return false;" class="mceButton mceButtonEnabled mce_unlink" href="#" id="wp_fs_unlink" role="button" aria-pressed="false"> <span class="mceIcon mce_unlink"></span> </a> </div>
              <div><span aria-orientation="vertical" role="separator" class="mceSeparator"></span></div>
              <div> <a title="Help (Alt + Shift + H)" onclick="fullscreen.help();return false;" class="mceButton mceButtonEnabled mce_help" href="#" id="wp_fs_help" role="button" aria-pressed="false"> <span class="mceIcon mce_help"></span> </a> </div>
            </div>
          </div>
          <div id="wp-fullscreen-save"> <span>Saved.</span> <img src="http://potsnpans.vn/wp-admin/images/wpspin_light.gif" alt="" />
            <input type="button" class="button-primary" value="Save" onclick="fullscreen.save();" />
          </div>
        </div>
      </div>
    </div>
    <div id="wp-fullscreen-wrap" style="width:822px;">
      <label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title">Enter title here</label>
      <input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
      <div id="wp-fullscreen-container">
        <textarea id="wp_mce_fullscreen"></textarea>
      </div>
      <div id="wp-fullscreen-status">
        <div id="wp-fullscreen-count">Word count: <span class="word-count">0</span></div>
        <div id="wp-fullscreen-tagline">Just write.</div>
      </div>
    </div>
  </div>
  <div class="fullscreen-overlay" id="fullscreen-overlay"></div>
  <div class="fullscreen-overlay fullscreen-fader fade-600" id="fullscreen-fader"></div>
  <div class="clear"></div>
</div>
<?php
	include ROOT_ADMIN."/views/_include/footer.php";
?>